<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>机器管理</title>
		<link rel="stylesheet" type="text/css" href="css/jqgl.css"/>
		<link rel="stylesheet" type="text/css" href="css/jiqiguanli.css"/>
		<link rel="stylesheet" type="text/css" href="css/xiangxi.css"/>
		<link rel="stylesheet" type="text/css" href="css/xiugai.css"/>
	</head>
	<body>
		<div class="main_content">
			<div class="con_left">
				<div class="l-box in">
					<a href="jqgl.html">机器管理</a>
				</div>
				<div class="l-box">
					<a href="jqgl2.html">机器二维码管理</a>
				</div>
			</div>
			<div class="con_right fl">
				<div class="r_main">
					<div class="xiugai">
						<header>编辑机器</header>
						<form action="" method="post">
							<input type="hidden" name="province" value=""/>
							<input type="hidden" name="city" value=""/>
							<input type="hidden" name="district" value=""/>
							<div class="left-con">
								<div class="s-one"><span>机器编号:</span><input type="text" name="" id="jqbh" value="" readonly/><span class="flag01">（机器编号由非零整数组成。【1-9999】）</span></div>
								<div class="s-one"><span>产品类型:</span>
									<div class="f-inp-s d-i-b cplx">
										<div>
											<select name='make'>
											    <option value='洗车机' selected>洗车机</option>
											    <option value='售水机'>售水机</option>
											    <option value='洗衣机'>洗衣机</option>
											</select>
										</div>
										<div class="s_img">
											<img src="img/select.png"/>
										</div>
									</div>
								</div>
								<div class="s-one"><span>机器类型:</span>
									<div class="f-inp-s d-i-b cplx">
										<div>
											<select name='make'>
											    <option value='烘干型' selected>烘干型</option>
											    <option value='洗脱型'>洗脱型</option>
											</select>
										</div>
										<div class="s_img">
											<img src="img/select.png"/>
										</div>
									</div>
								</div>
								<div class="s-one"><span>策略:</span>
									<div class="f-inp-s d-i-b cplx">
										<div>
											<select name='make'>
											    <option value='无' selected>无</option>
											</select>
										</div>
										<div class="s_img">
											<img src="img/select.png"/>
										</div>
									</div>
								</div>
								<div class="s-one"><span>现场图片:</span>
									<div id="file">
										<div class="tupianshangchuan">
											<p>选择图片:<span>未选择任何文件</span></p>
											<input type="file" name="" id="inputs" value="" />
											<img src="img/shangchuan.jpg"/>
											<div id='dd'></div>
										</div>
										<div class="tupianshangchuan">
											<p>选择图片:<span id="tips">未选择任何文件</span></p>
											<input type="file" name="" id="inputs2" value="" />
											<img src="img/shangchuan.jpg"/>
											<div id='dd2'></div>
										</div>
										<label for="">格式：bmp/gif/jpeg/jpg/png</label>
										<input type="button" value="上传" id="shangchuan"/>
									</div>
								</div>
							</div>
							<div class="right-con" id="distpicker6">
								<div class="s-one"><span>所在省:</span>
									<div class="f-inp-s d-i-b">
										<div class="form-group">
											<select name='make' class="form-control" id="province1" data-province="---- 选择省 ----">
											</select>
										</div>
										<div class="s_img">
											<img src="img/select.png"/>
										</div>
									</div>
								</div>
								<div class="s-one"><span>所在市:</span>
									<div class="f-inp-s d-i-b">
										<div class="form-group">
											<select name='make' class="form-control" id="city1" data-city="---- 选择市 ----">
											</select>
										</div>
										<div class="s_img">
											<img src="img/select.png"/>
										</div>
									</div>
								</div>
								<div class="s-one"><span>所在区县:</span>
									<div class="f-inp-s d-i-b">
										<div class="form-group">
											<select name='make' class="form-control" id="district1" data-district="---- 选择区 ----">
											</select>
										</div>
										<div class="s_img">
											<img src="img/select.png"/>
										</div>
									</div>
								</div>
								<div class="s-one"><span>具体位置:</span>
										<input type="text" name="" id="" value="" class="wzhi"/>
								</div>
								<div class="s-one"><span>经度:</span>
										<input type="text" name="" id="input_num" value="" class="wzhi"/><span style="display: none;color: red;">*</span>
								</div>
								<div class="s-one"><span>纬度:</span>
										<input type="text" name="" id="input_num1" value="" class="wzhi"/><span style="display: none;color: red;">*</span>
								</div>
								<input type="submit" value="保存" id="save"/>
								<input type="button" value="返回" id="back" onclick="javascript:window.location.href='jqgl.html'"/>
							</div>
						</form>
					</div>
					<div class="mask"></div>
				</div>
			</div>
		</div>
		<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jqgl.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/bootstrap.min.js"></script>
		<script src="js/distpicker.data.js"></script>
		<script src="js/distpicker.js"></script>
		<script src="js/main.js"></script>
		<script type="text/javascript">
			$(':submit').on('click',function(){
				$('#input_num').nextAll().eq(0).css('display','none');
				$('#input_num1').nextAll().eq(0).css('display','none');
				var input_num=$.trim($('#input_num').val());
				if(!input_num||!$.isNumeric(input_num)){
					$('#input_num').nextAll().eq(0).css('display','inline-block');
					return false;
				}
				var input_num1=$.trim($('#input_num1').val());
				if(!input_num1||!$.isNumeric(input_num1)){
					$('#input_num1').nextAll().eq(0).css('display','inline-block');
					return false;
				}
			})
			$('#province1').on('change',function(e){
				$("input[name='city']").val('')
				$("input[name='district']").val('')
				var aa=$("#province1 option:selected").data('code');
				$("input[name='province']").val(aa)
			})
			$('#city1').on('change',function(e){
				$("input[name='district']").val('')
				var aa=$("#city1 option:selected").data('code');
				$("input[name='city']").val(aa)
			})
			$('#district1').on('change',function(e){
				var aa=$("#district1 option:selected").data('code');
				$("input[name='district']").val(aa)
			})
		</script>
	</body>
</html>
